exports.edit = (req,res) => {

    //获取参数信息
    var bodyParams = req.routeInfo.bodyParams;

    //更新节点名称
    function updateOrganizationStructureInfo(cb){

        R.SEND_HTTP(
            req,
            res,
            {
                url: CORE_APIConfig.coreAPI.organizationalStructureUpdate.Request_Api_Url,
                method : 'POST',
                data   : {
                    update_where   : "os_id",
                    os_id          : bodyParams.os_id,
                    os_name        : bodyParams.os_name
                }
            },
            function (data) {

                cb();
                
            }
        )

        
    }

    //更新扩展信息
    function updateOrganizationStructureExtensionInfo(cb){

        R.SEND_HTTP(
            req,
            res,
            {
                url: CORE_APIConfig.coreAPI.artOrganizationStructureExtensionInfoUpdate.Request_Api_Url,
                method : 'POST',
                data   : {
                    update_where    : "osei_osid",
                    osei_osid       : bodyParams.os_id,
                    osei_contact    : bodyParams.osei_contact,
                    osei_phone      : bodyParams.osei_phone,
                    osei_address    : bodyParams.osei_address,
                    osei_provinces  : bodyParams.pid,
                    osei_city       : bodyParams.cid,
                    osei_area       : bodyParams.aid,
                }
            },
            function (data) {

                cb();
                
            }
        )

        
    }

    F.Serial([updateOrganizationStructureInfo,updateOrganizationStructureExtensionInfo],() => {
        RES.successResponse(res);
    })

}